Commits

Jakub Wilk committed 5fe0e50

Makefile: make some variables lowercase.

Comments (0)

Files changed (1)

-EXEFILE = dochttx
-HFILES = $(wildcard *.h)
-CFILES = $(wildcard *.c)
-OFILES = $(CFILES:%.c=%.o)
+exe_file = dochttx
+h_files = $(wildcard *.h)
+c_files = $(wildcard *.c)
+o_files = $(c_files:%.c=%.o)
 
 CC = @CC@
 CFLAGS = @CFLAGS@ @ZVBI_CFLAGS@
 CPPFLAGS = @CPPFLAGS@
 
 .PHONY: all
-all: $(EXEFILE)
+all: $(exe_file)
 
 .PHONY: clean
 clean:
-	$(RM) *.o $(EXEFILE) core core.* *~ Makefile.dep
+	$(RM) *.o $(exe_file) core core.* *~ Makefile.dep
 
 .PHONY: distclean
 distclean: clean
 	rm -f config.log config.status config.h
 
-$(OFILES): %.o: %.c
+$(o_files): %.o: %.c
 	$(CC) $(CFLAGS) -c $(<) -o $(@)
 
-$(EXEFILE): $(OFILES)
+$(exe_file): $(o_files)
 	$(CC) $(CFLAGS) $(LDFLAGS) $(^) $(LDLIBS) -o $(@)
 
-Makefile.dep: $(CFILES) $(HFILES)
-	$(CC) $(CFLAGS) -MM $(CFILES) > $(@)
+Makefile.dep: $(c_files) $(h_files)
+	$(CC) $(CFLAGS) -MM $(c_files) > $(@)
 
 -include Makefile.dep