Explorar el Código

Add dist target

master
sin hace 10 años
padre
commit
89d0dc35ee
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. +10
    -1
      Makefile

+ 10
- 1
Makefile Ver fichero

@@ -1,3 +1,5 @@
VERSION = 0.0

PREFIX = /usr/local
MANPREFIX = $(PREFIX)/man

@@ -27,8 +29,15 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1

dist:
mkdir -p noice-$(VERSION)
cp LICENSE Makefile README config.def.h noice.1 noice.c queue.h strlcat.c strlcpy.c util.h noice-$(VERSION)
tar -cf noice-$(VERSION).tar noice-$(VERSION)
gzip noice-$(VERSION).tar
rm -rf noice-$(VERSION)

clean:
rm -f $(BIN) $(OBJ)
rm -f $(BIN) $(OBJ) noice-$(VERSION).tar.gz

.SUFFIXES: .def.h



Cargando…
Cancelar
Guardar