aboutsummaryrefslogtreecommitdiffstats
path: root/community/dhcp-helper/compile-only-once.patch
blob: c35c6746e6dd516cf5c9281d3abb146f2ccd8cbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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: