Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .PHONY: all clean force
- all : app
- app : aux.o main.o
- $(CC) -o $@ $^
- VPATH=a/aux
- aux.o : aux.c
- main.o : main.c version.h
- version.h : force
- ( export LANG=C; \
- echo -n 'const char VERSION[] = "'; \
- { \
- svn info; \
- svn status | grep -v '^?'; \
- } | tr \\n @ | sed -e s/@/\\\\n/g ; \
- echo '";'; \
- ) > $@.tmp
- cmp -s $@.tmp $@ || mv $@.tmp $@
- force:
- clean:
- rm -f *.o version.h{,.tmp}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement