Browse Source

Makefile: just show the compiler output

Don't be fancy and just show the actual output so debugging is simpler.
Hiltjo Posthuma 4 years ago
parent
commit
e78b4a9207
1 changed files with 17 additions and 26 deletions
  1. 17
    26
      Makefile

+ 17
- 26
Makefile View File

@@ -15,46 +15,37 @@ options:
15 15
 	@echo "CC       = ${CC}"
16 16
 
17 17
 .c.o:
18
-	@echo CC $<
19
-	@${CC} -c ${CFLAGS} $<
18
+	${CC} -c ${CFLAGS} $<
20 19
 
21 20
 ${OBJ}: config.h config.mk
22 21
 
23 22
 config.h:
24
-	@echo creating $@ from config.def.h
25
-	@cp config.def.h $@
23
+	cp config.def.h $@
26 24
 
27 25
 dwm: ${OBJ}
28
-	@echo CC -o $@
29
-	@${CC} -o $@ ${OBJ} ${LDFLAGS}
26
+	${CC} -o $@ ${OBJ} ${LDFLAGS}
30 27
 
31 28
 clean:
32
-	@echo cleaning
33
-	@rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
29
+	rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
34 30
 
35 31
 dist: clean
36
-	@echo creating dist tarball
37
-	@mkdir -p dwm-${VERSION}
38
-	@cp -R LICENSE Makefile README config.def.h config.mk \
32
+	mkdir -p dwm-${VERSION}
33
+	cp -R LICENSE Makefile README config.def.h config.mk\
39 34
 		dwm.1 drw.h util.h ${SRC} dwm.png transient.c dwm-${VERSION}
40
-	@tar -cf dwm-${VERSION}.tar dwm-${VERSION}
41
-	@gzip dwm-${VERSION}.tar
42
-	@rm -rf dwm-${VERSION}
35
+	tar -cf dwm-${VERSION}.tar dwm-${VERSION}
36
+	gzip dwm-${VERSION}.tar
37
+	rm -rf dwm-${VERSION}
43 38
 
44 39
 install: all
45
-	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
46
-	@mkdir -p ${DESTDIR}${PREFIX}/bin
47
-	@cp -f dwm ${DESTDIR}${PREFIX}/bin
48
-	@chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
49
-	@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
50
-	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
51
-	@sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
52
-	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
40
+	mkdir -p ${DESTDIR}${PREFIX}/bin
41
+	cp -f dwm ${DESTDIR}${PREFIX}/bin
42
+	chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
43
+	mkdir -p ${DESTDIR}${MANPREFIX}/man1
44
+	sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
45
+	chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
53 46
 
54 47
 uninstall:
55
-	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
56
-	@rm -f ${DESTDIR}${PREFIX}/bin/dwm
57
-	@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
58
-	@rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1
48
+	rm -f ${DESTDIR}${PREFIX}/bin/dwm\
49
+		${DESTDIR}${MANPREFIX}/man1/dwm.1
59 50
 
60 51
 .PHONY: all options clean dist install uninstall

Loading…
Cancel
Save