Skip to content

Commit a02d94e

Browse files
committed
Add debpackage target
Fix some issues in makefile
1 parent 2e8c3d5 commit a02d94e

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

Makefile

+17-10
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,26 @@ build:
2222
clean:
2323
echo Deleting the binaries....
2424
rm ${BUILDDIR}/*
25-
rm usrData/*
26-
rm appData/*
27-
25+
rm ffmpeg-coder/usr/bin/ffmpeg-coder
26+
2827
.PHONY: run
2928
run:
30-
echo "Running the built program...."
29+
echo Running the built program....
3130
./${BUILDDIR}/${APPNAME}.o
3231

32+
.PHONY: dir
33+
dir:
34+
echo Creating directories.....
35+
mkdir bin
36+
37+
.PHONY: debpackage
38+
debpackage: build
39+
echo Creating the debian package of ffmpeg-coder
40+
mv bin/ffmpeg-coder.o bin/ffmpeg-coder
41+
cp bin/ffmpeg-coder ffmpeg-coder/usr/bin/
42+
dpkg-deb -v --build ffmpeg-coder bin
43+
echo The deb package has been created in the bin folder
44+
3345

3446
# Windows Configs for make
3547
.PHONY: winbuild
@@ -38,10 +50,5 @@ winbuild:
3850

3951
.PHONY: winrun
4052
winrun:
41-
echo "Running the built program...."
53+
echo Running the built program....
4254
./${BUILDDIR}/${APPNAME}.exe
43-
44-
.PHONY: dir
45-
dir:
46-
echo Creating directories.....
47-
mkdir bin usrData appData

0 commit comments

Comments
 (0)