summaryrefslogblamecommitdiff
path: root/Makefile
blob: 98b565dba9c3c1bb4d0f6d5080c4f6c1144572ed (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                    
 

                  
                    
                 
 

                     
 

                        
                       


                                     
 
                                                   
 

                             
 
                                 
 

                             
 
                  
 

                   
 
        


                                             
                 


                           

                            
 



                                                        
               
##
# Building apk-tools

-include config.mk

PACKAGE := apk-tools
VERSION := 2.10.4

##
# Default directories

DESTDIR		:=
SBINDIR		:= /sbin
LIBDIR		:= /lib
CONFDIR		:= /etc/apk
MANDIR		:= /usr/share/man
DOCDIR		:= /usr/share/doc/apk

export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR

##
# Top-level rules and targets

targets		:= libfetch/ src/

##
# Include all rules and stuff

include Make.rules

##
# Top-level targets

install:
	$(INSTALLDIR) $(DESTDIR)$(DOCDIR)
	$(INSTALL) README $(DESTDIR)$(DOCDIR)

check test: FORCE
	$(Q)$(MAKE) TEST=y
	$(Q)$(MAKE) -C test

static:
	$(Q)$(MAKE) STATIC=y

tag: check
	git commit . -m "apk-tools-$(VERSION)"
	git tag -s v$(VERSION) -m "apk-tools-$(VERSION)"

src/: libfetch/