Skip to content

Commit

Permalink
Add 'make dist' target
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuomo Hartikainen committed Sep 2, 2014
1 parent 3d2de86 commit f0a614c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -25,6 +25,14 @@ procwait.o: procwait.c error.h proc.h queue.h
strutil.o: strutil.c strutil.h error.h
$(CC) -c $(CFLAGS) $< -o $@

dist: clean
mkdir -p $(TARGET)-$(VERSION)
@cp -R LICENSE Makefile README config.mk procwait.1.mk *.c *.h \
$(TARGET)-$(VERSION)
@tar -cf $(TARGET)-$(VERSION).tar $(TARGET)-$(VERSION)
@gzip $(TARGET)-$(VERSION).tar
@rm -rf $(TARGET)-$(VERSION)

man: $(MAN)

$(MAN): $(MAN).mk
Expand Down

0 comments on commit f0a614c

Please sign in to comment.