1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/textproc/topic/files/patch-Makefile
Alexey Dokuchaev d04055801b - Try to unbreak parallel (-jX) builds by sanitizing makefile
- Cleanup Makefile: kill defunct WWW and comment MASTER_SITES
2013-08-02 10:33:26 +00:00

27 lines
692 B
Plaintext

--- Makefile.orig 2013-01-01 14:00:00.000000000 +0800
+++ Makefile 2013-08-02 18:27:07.000000000 +0800
@@ -5,15 +5,17 @@
CFLAGS+= -Wall -Werror
BUILD= v1.02
-all: prep compile
+all: topic
-prep: ./bin2c.c ./syntax.txt ./markup.txt ./license.txt
+bin2c: bin2c.c
$(CC) $(CFLAGS) ./bin2c.c -o ./bin2c
- ./bin2c -z ./syntax.txt ./syntax.c
- ./bin2c -z ./markup.txt ./markup.c
- ./bin2c -z ./license.txt ./license.c
-compile: ./topic.c ./syntax.c ./markup.c ./license.c ./topic.1
+.SUFFIXES: .txt
+
+.txt.c: bin2c
+ ./bin2c -z $(.IMPSRC) $(.TARGET)
+
+topic: ./topic.c ./syntax.c ./markup.c ./license.c ./topic.1
$(CC) $(CFLAGS) -DBUILD="\"$(BUILD)\"" ./topic.c -o ./topic
clean: