mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-25 19:56:30 +00:00
Fix Makefile and some unneeded #includes.
make clean would first compile everything before cleaning. And building anything would make git-info.h too late.
This commit is contained in:
6
Makefile
6
Makefile
@@ -36,6 +36,10 @@ $(DUMPOBJ_OBJS): Makefile
|
||||
git-info.h:
|
||||
./make-git-info
|
||||
|
||||
# Bootstrap dependency on the git header file, which otherwise
|
||||
# gets generated too late.
|
||||
macro11.o: git-info.h
|
||||
|
||||
clean:
|
||||
-rm -f $(MACRO11_OBJS) $(DUMPOBJ_OBJS) macro11 dumpobj
|
||||
-rm -f *.d
|
||||
@@ -65,7 +69,9 @@ tests: macro11 argtests
|
||||
|
||||
# Automatic dependency generation
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
-include $(ALL_SRCS:.c=.d)
|
||||
endif
|
||||
|
||||
# Make .d files as side effect of compiling .c to .o
|
||||
%.d %.o: %.c
|
||||
|
||||
Reference in New Issue
Block a user