source: src-sh/pc-updatemanager/Makefile @ 045b2de

releng/10.0
Last change on this file since 045b2de was 045b2de, checked in by Kris Moore <kris@…>, 5 months ago

Backport the fixes for package updates to releng/10.0

  • Property mode set to 100644
File size: 1.9 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        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/
33        -$(INSTALL_FILE) pc-updatemanager $(INSTALL_ROOT)$(PREFIX)/bin/
34        -$(INSTALL_FILE) etcmerge $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/
35
36
37uninstall_scripts:  FORCE
38        -$(DEL_FILE) -r $(INSTALL_ROOT)$(PREFIX)/bin/pc-updatemanager
39        -$(DEL_DIR) $(INSTALL_ROOT)$(PREFIX)/bin/
40
41
42install_dochmod: first FORCE
43        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/bin/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/bin/
44        chmod 755 $(PREFIX)/bin/pc-updatemanager
45
46install_conf: first FORCE
47        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/
48        -$(INSTALL_DIR) conf $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/
49
50
51uninstall_conf:  FORCE
52        -$(DEL_FILE) -r $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/conf
53        -$(DEL_DIR) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager
54
55
56install:  install_scripts install_dochmod install_conf  FORCE
57
58uninstall: uninstall_scripts uninstall_conf  FORCE
59
60FORCE:
61
Note: See TracBrowser for help on using the repository browser.