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

                    
 

                  
                    
                     
 

              

                     
 

                        
                       


                                     
                               
                                     
 
                                                                           
 
  
                   
 
                                      
 

                             
 
                  
 

                   
 
        
                                         
                                                
 
                      


                           

                            
 



                                                        
               
##
# Building apk-tools

-include config.mk

PACKAGE := apk-tools
VERSION := 2.12.0_rc2

export VERSION

##
# Default directories

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

export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR INCLUDEDIR PKGCONFIGDIR

##
# Top-level subdirs

subdirs		:= libfetch/ src/ doc/

##
# Include all rules and stuff

include Make.rules

##
# Top-level targets

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

check test: FORCE src/
	$(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/