diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 8ae20fc..0000000 --- a/src/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -OBJECTS = main.o -TARGET = hello - -all: $(TARGET) - -$(TARGET): $(OBJECTS) - $(CC) -o $@ $^ - -main.o: | new_header -main.o: version.h - -new_header: - @sed -e "s##$$(git describe --dirty --always)#g" < version.h.in > version.h.tmp - @if diff -q version.h.tmp version.h >/dev/null 2>&1; then \ - rm version.h.tmp; \ - else \ - echo "version.h.in => version.h" ; \ - mv version.h.tmp version.h; \ - fi - -clean: - rm -f $(TARGET) $(OBJECTS) version.h - -.PHONY: all clean - -# vim: noet