summaryrefslogtreecommitdiff
path: root/sysutils/amtc/files/patch-Makefile
blob: 319b60bf9f4fdca221d314fa8a39ba50e463e1a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- Makefile.orig	2015-05-04 22:53:09 UTC
+++ Makefile
@@ -4,8 +4,8 @@
 #
 # Makefile for amtc
 
-LDLIBS=-lcurl -lpthread
-CFLAGS=-I. -Wall
+LDLIBS=-L/usr/local/lib -lcurl -lpthread
+CFLAGS=-I/usr/local/include -I. -Wall
 AMTCV=$(shell cat ../version)
 APP=amtc-$(AMTCV)
 OS=$(shell uname -s)
@@ -18,6 +18,8 @@ HEADERS=amtc_usage cmd_powerdown cmd_pow
 	wsman_ping_enable wsman_ping_disable \
 	wsman_shutdown_graceful
 
+all: amtc
+
 amtc: amtc.c
 
 amtc.c: amt.h
@@ -34,3 +36,8 @@ amt.h:
 clean:
 	rm -f cmd_*.h wsman_*.h amtc_usage.h amt.h amtc *.o
 
+install:
+	mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/www
+	$(INSTALL) -c amtc $(DESTDIR)$(PREFIX)/bin
+	/bin/cp -R ../amtc-web $(DESTDIR)$(PREFIX)/www
+