source: src-sh/pc-updatemanager/Makefile @ c60c604

9.2-releaseenter/10releng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1releng/10.1.1releng/10.1.2
Last change on this file since c60c604 was c60c604, checked in by Kris Moore <kris@…>, 23 months ago

Add a new "mkports.sh" helper script, which will convert the git tree into
the pcbsd-utils & pcbsd-utils-qt4 ports.

While here, convert the pcbsd-utils port to use STAGING

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#############################################################################
2# Makefile for building: pc-updatemanager
3#############################################################################
4
5PREFIX?= /usr/local
6
7AR            = ar cqs
8RANLIB        = 
9TAR           = tar -cf
10COMPRESS      = gzip -9f
11COPY          = cp -f
12SED           = sed
13COPY_FILE     = $(COPY)
14COPY_DIR      = $(COPY) -R
15STRIP         = 
16INSTALL_FILE  = $(COPY_FILE)
17INSTALL_DIR   = $(COPY_DIR)
18INSTALL_PROGRAM = $(COPY_FILE)
19DEL_FILE      = rm -f
20SYMLINK       = ln -f -s
21DEL_DIR       = rmdir
22MOVE          = mv -f
23CHK_DIR_EXISTS= test -d
24MKDIR         = mkdir -p
25
26first: all
27
28all:
29
30install_scripts: first FORCE
31        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/bin/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/bin/
32        -$(INSTALL_FILE) pc-updatemanager $(INSTALL_ROOT)$(PREFIX)/bin/
33
34
35uninstall_scripts:  FORCE
36        -$(DEL_FILE) -r $(INSTALL_ROOT)$(PREFIX)/bin/pc-updatemanager
37        -$(DEL_DIR) $(INSTALL_ROOT)$(PREFIX)/bin/
38
39
40install_dochmod: first FORCE
41        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/bin/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/bin/
42        chmod 755 $(PREFIX)/bin/pc-updatemanager
43
44install_conf: first FORCE
45        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/
46        -$(INSTALL_DIR) conf $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/
47
48
49uninstall_conf:  FORCE
50        -$(DEL_FILE) -r $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/conf
51        -$(DEL_DIR) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager
52
53
54install:  install_scripts install_dochmod install_conf  FORCE
55
56uninstall: uninstall_scripts uninstall_conf  FORCE
57
58FORCE:
59
Note: See TracBrowser for help on using the repository browser.