1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/community/dhcp-helper/compile-only-once.patch
William Pitcock d8c154d878 community/dhcp-helper: new aport
used in production for a few months, just never got around to committing it
2018-10-08 21:35:42 -05:00

13 lines
304 B
Diff

--- dhcp-helper-1.2.orig/Makefile
+++ dhcp-helper-1.2/Makefile
@@ -5,7 +5,9 @@
CFLAGS?= -O2
version= $(shell ./get-version)
-all: dhcp-helper.c
+all: dhcp-helper
+
+dhcp-helper: dhcp-helper.c
$(CC) $(CFLAGS) $(RPM_OPT_FLAGS) -DVERSION=\"$(version)\" -Wall -W dhcp-helper.c -o dhcp-helper
clean: